package com.framework.web.bus.repository;

import com.framework.web.bus.domain.CookingSteps;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @Title: Repository
* @Description: repository
* @author zqtao
* @date 2016-09-08
* @version V1.0
*
*/
public interface CookingStepsRepository extends JpaRepository<CookingSteps, String>,
JpaSpecificationExecutor<CookingSteps> {

    /**
     * 根据菜谱ID获取步骤列表
     * @param cookbookId
     * @return
     */
    public List<CookingSteps> findByCookbookId(String cookbookId);
}